<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:33:"themes/paiban/portal\article.html";i:1524790263;s:82:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\head.html";i:1524722303;s:86:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\function.html";i:1524709905;s:81:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\nav.html";i:1524790448;s:84:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\footer.html";i:1524709395;s:85:"F:\phpStudy\PHPTutorial\WWW\local05\thinkcmf\public\themes\paiban\public\scripts.html";i:1524711386;}*/ ?>
<!DOCTYPE html>
<html>

	<head>
		<meta name="keywords" content="<?php echo (isset($site_info['site_seo_keywords']) && ($site_info['site_seo_keywords'] !== '')?$site_info['site_seo_keywords']:''); ?>"/>
		<meta name="description" content="<?php echo (isset($site_info['site_seo_description']) && ($site_info['site_seo_description'] !== '')?$site_info['site_seo_description']:''); ?>">
		<title><?php echo $article['post_title']; ?></title>
		
<?php 
/*可以加多个方法哟！*/
function _sp_helloworld(){
	echo "牛逼啊!";
}

function _sp_helloworld2(){
	echo "hello ThinkCMF2!";
}


function _sp_helloworld3(){
	echo "hello ThinkCMF3!";
}

 ?>
<meta charset="UTF-8">
<meta name="keywords" content="关键字">
<meta name="description" content="网站描述">
<meta name="author" content="edit by Binggen">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" type="text/css" href="/themes/paiban/public/assets/css/reset.css"/>
<link rel="stylesheet" href="/themes/paiban/public/assets/layui/css/layui.css">
<link rel="stylesheet" href="/themes/paiban/public/assets/css/index.css">
<link rel="shortcut icon" href="favicon.ico">

	</head>

	<body>
		<div class="pages">
			
	<nav class="header">
		<div class="wrapper">
			<a class="logo thunbnail-h" href="/"><img src="/themes/paiban/public/assets/images/logo.png" alt="一键排版系统"></a>
			<?php

function __parse_navigation88ecdd2604c17b4e02247fe6850981eb($menus,$level=1){
$_parse_navigation_func_name = '__parse_navigation88ecdd2604c17b4e02247fe6850981eb';
if(is_array($menus) || $menus instanceof \think\Collection || $menus instanceof \think\Paginator): if( count($menus)==0 ) : echo "" ;else: foreach($menus as $key=>$menu): if(empty($menu['children'])): ?>
    <li class="menu-item menu-item-level-<?php echo $level; ?>">
    
					<a href="<?php echo (isset($menu['href']) && ($menu['href'] !== '')?$menu['href']:''); ?>" target="<?php echo (isset($menu['target']) && ($menu['target'] !== '')?$menu['target']:''); ?>"><?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?></a>
				
    </li>
<?php endif; if(!empty($menu['children'])): ?>
    <li class="dropdown dropdown-custom dropdown-custom-level-<?php echo $level; ?>">
        
					<a href="#" class="dropdown-toggle dropdown-toggle-<?php echo $level; ?>" data-toggle="dropdown">
						<?php echo (isset($menu['name']) && ($menu['name'] !== '')?$menu['name']:''); ?><span class="caret"></span>
					</a>
				
        <ul class="dropdown-menu dropdown-menu-level-<?php echo $level; ?>">
            <?php 
            $mLevel=$level+1;
             ?>
            <?php echo $_parse_navigation_func_name($menu['children'],$mLevel); ?>
        </ul>
    </li>
<?php endif; endforeach; endif; else: echo "" ;endif; 
}

    $navMenuModel = new \app\admin\model\NavMenuModel();
    $menus = $navMenuModel->navMenusTreeArray('1',0);
if('ul'==''): ?>
    <?php echo __parse_navigation88ecdd2604c17b4e02247fe6850981eb($menus); else: ?>
    <ul id="navigation" class="navigation">
        <?php echo __parse_navigation88ecdd2604c17b4e02247fe6850981eb($menus); ?>
    </ul>
<?php endif; ?>

			<div class="login-mark-box">
				<!--<button class="login-btn" type="button">登录</button>-->
			</div>
		</div>
	</nav>




			<div class="content academic-con">
				<div class="inside-banner news-banner"></div>
				<!--资讯列表-->
				<div class="section">
					<div class="wrapper news-con clearfix">
						<div class="news-box left">
							<!--资讯详情-->

							<div class="news-title">
								<h2><?php echo $article['post_title']; ?></h2>
								<span class="date"><?php echo date('Y-m-d H:i',$article['published_time']); ?></span>
							</div>
							<!--文章内容-->
							<div class="new-article">
								<?php echo $article['post_content']; ?>
							</div>
							<?php if(!empty($article['post_source'])): ?>
								<div>
									<b>注：本文转载自<?php echo $article['post_source']; ?>，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
								</div>
							<?php endif; ?>
							<!--上下篇-->
							<div class="to-next-article clearfix">
								<?php 
									//var_dump($prev_article);die();

									if(null ==$next_article['post_title']){
										$next_article['post_title'] = '已经是最后一篇文章了';
										$next_url = 'javascript:void(0)';
									}else{
										$next_url = cmf_url('portal/Article/index',array('id'=>$next_article['id'],'cid'=>$category['id']));
									}

									if(null ==$prev_article['post_title']){
										$prev_article['post_title'] = '第一篇文章';
										$prev_url='javascript:void(0)';
									}else{
										$prev_url=cmf_url('portal/Article/index',array('id'=>$prev_article['id'],'cid'=>$category['id']));
									}

								 ?>
								<a class="left txt-overflow" href="<?php echo $prev_url; ?>">上一篇 ：<?php echo $prev_article['post_title']; ?></a>
								<a class="right txt-overflow" href="<?php echo $next_url; ?>">下一篇 ：<?php echo $next_article['post_title']; ?></a>
							</div>
							<!--上下篇END-->

							<!--资讯详情END-->


						</div>
						<div class="news-recommend right">
							<div class="news-serach">
								<form action="<?php echo cmf_url('portal/Search/index'); ?>" method="post" class="news-serach-form">
									<input type="text" name="keyword"  value="<?php echo input('param.keyword',''); ?>" placeholder="请输入关键词">
									<button type="submit" class="search-btn"></button>
								</form>
							</div>

							<p class="title">重要公告</p>
							<?php 
								$hot_articles=[];
							 ?>
							<ul class="recommend-infos">
								<?php
$articles_data = \app\portal\service\ApiService::articles([
    'field'   => '',
    'where'   => "",
    'limit'   => '5',
    'order'   => 'post.post_hits DESC',
    'page'    => '',
    'relation'=> 'categories',
    'category_ids'=>$category['id']
]);

$__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';

 if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;$top=$key<3?"top3":""; ?>
									<li class="<?php echo $top; ?>">
										<a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'])); ?>">
											<i class="sort-num"><?php echo $key+1; ?></i>
											<div class="recommend-txt">
												<h4 class="txt-overflow"><?php echo $vo['post_title']; ?></h4>
												<span>2017-12-09</span>
											</div>
										</a>
									</li>
								
<?php endforeach; endif; else: echo "" ;endif; ?>
							</ul>
						</div>
					</div>


				</div>

			</div>
		</div>
		<!--主体END-->
		<div class="footer">
	<div class="wrapper section clearfix">
		<div class="footer-left">
			<p>联系我们</p>
			<p class="phone-num">027-87659198</p>
			<p>周一至周五 9：00-18：00</p>
		</div>
		<div class="footer-middle">
			<div class="clearfix">
				<span class="title">友情链接：</span>
				<ul class="friends-link">
					<li><a href="http://www.baokan.net.cn/" target="_blank">湖北报刊编辑经营服务有限公司</a></li>
					<li><a href="http://www.yungeng.org/" target="_blank">云耕创意（武汉）科技有限公司</a></li>
				</ul>
			</div>
			<div class="copyright">
				<p>Copyright &copy;
					<script>document.write(new Date().getFullYear())</script>
					<a href="" target="_blank">baokan.net.cn</a> All Rights Reserved
				</p>
				<a href="http://www.miibeian.gov.cn/publish/query/indexFirst.action" target="_blank">鄂ICP备18001010号</a>
			</div>
		</div>
		<div class="footer-qrcode">
			<p>官方微信公众号</p>
			<div class="thumbnail-w">
				<img src="/themes/paiban/public/assets/images/qrcode.png" alt="湖北报刊编辑经营服务有限公司微信公众号">
			</div>
		</div>
	</div>
</div>

		</div>

		<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
	<script src="/themes/paiban/public/assets/js/jquery.min.js"></script>
	<script src="/themes/paiban/public/assets/layui/layui.js"></script>
	<script src="/themes/paiban/public/assets/js/common.js"></script>
	<script>
	$(function(){



		
	});
	</script>



		<script>
			$(function () {
				var layer=null;
				layui.use('layer', function(){
					layer=layui.layer;
				});

				var $goal=$(".news-recommend"),
					goalH=$goal.offset().top-90;
				$(window).scroll(function () {
					var scrollTop = $(this).scrollTop();
					(scrollTop >= goalH) ? ($goal.addClass('news-recommend-fixed')) : ($goal.removeClass('news-recommend-fixed'));
				});

			});

		</script>
	</body>

</html>